package com.didi.gulimall.api;

import com.didi.gulimall.common.to.SkuReductionTo;
import com.didi.gulimall.common.to.SpuBoundTo;
import com.didi.gulimall.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author 10626
 */
@FeignClient("gulimall-coupon")
public interface CouponApiService {

    @PostMapping("/coupon/spubounds/save")
    R saveSpuBounds(@RequestBody SpuBoundTo spuBoundTo);


    @PostMapping("/coupon/skufullreduction/saveinfo")
    R saveSkuReduction(@RequestBody SkuReductionTo skuReductionTo);
}
